import request from '@/utils/request'
// 水机


//获取水机列表
export function getMasterList(params) {
    return request({
        url: '/expenses/master',
        method: 'get',
        params
    })
}
export function getMasterSelectList(params) {
    return request({
        url: '/expenses/master/getSelectLists',
        method: 'get',
        params
    })
}
export function getMasterDetail(params) {
    return request({
        url: '/expenses/master/detail',
        method: 'get',
        params
    })
}
//添加
export function createMaster(data) {
    return request({
        url: '/expenses/master/create',
        method: 'post',
        data
    })
}

//修改
export function updateMaster(data) {
    return request({
        url: '/expenses/master/update',
        method: 'put',
        data
    })
}


//修改
export function changeFiledStatus(data) {
    return request({
        url: '/expenses/master/changeFiledStatus',
        method: 'put',
        data
    })
}


//删除
export function delMaster(data) {
    return request({
        url: '/expenses/master/delete',
        method: 'delete',
        data
    })
}

